<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j" template="/users/users-frame.xhtml">

	<ui:param name="pageTitle" value="BIK" />

	<ui:define name="subheader">BIK details</ui:define>

	<ui:define name="main">
		<rich:extendedDataTable value="#{obligations}" var="obligation"
			sortMode="single" rows="20"
			onRowMouseOver="this.className='extdt-row-selected'"
			onRowMouseOut="this.className=''" id="userListTable">

			<f:facet name="header">
				<h:outputText value="Zobowiązania klienta:" />
			</f:facet>

			<rich:column width="50%">
				<f:facet name="header">Miesiąc</f:facet>
				<h:outputText value="#{obligation.getMonth()}" />
			</rich:column>

			<rich:column width="35%">
				<f:facet name="header">Kwota</f:facet>
				<h:outputText value="#{obligation.getMoney()}">
					<f:convertNumber type="currency"
						currencySymbol="#{obligation.getCurrency()}" />
				</h:outputText>
			</rich:column>

			<rich:column width="15%">
				<f:facet name="header">Waluta</f:facet>
				<h:outputText value="#{obligation.getCurrency()}">
				</h:outputText>
			</rich:column>
		</rich:extendedDataTable>
	</ui:define>
</ui:composition>
